<template>
  <div>
    用户名: <input type="text" /><br />
    密码: <input type="password" />
  </div>
</template>

<script>
export default {
  created() {
    console.log("创建");
  },
  destroyed() {
    console.log("销毁");
  },
  activated() {
    console.log("activated - UserName 组件激活");
  },
  deactivated() {
    console.log("deactivated - UserName 组件非激活");
  },
};
</script>

<style>
</style>